package com.shiliang.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.shiliang.mapper.BoundaryMapper;
import com.shiliang.domain.Boundary;
import com.shiliang.service.IBoundaryService;

/**
 * 边界表Service业务层处理
 * 
 * @author shiliang
 * @date 2025-07-17
 */
@Service
public class BoundaryServiceImpl implements IBoundaryService 
{
    @Autowired
    private BoundaryMapper boundaryMapper;

    /**
     * 查询边界表
     * 
     * @param id 边界表主键
     * @return 边界表
     */
    @Override
    public Boundary selectBoundaryById(Long id)
    {
        return boundaryMapper.selectBoundaryById(id);
    }

    /**
     * 查询边界表列表
     * 
     * @param boundary 边界表
     * @return 边界表
     */
    @Override
    public List<Boundary> selectBoundaryList(Boundary boundary)
    {
        return boundaryMapper.selectBoundaryList(boundary);
    }

    /**
     * 新增边界表
     * 
     * @param boundary 边界表
     * @return 结果
     */
    @Override
    public int insertBoundary(Boundary boundary)
    {
        return boundaryMapper.insertBoundary(boundary);
    }

    /**
     * 修改边界表
     * 
     * @param boundary 边界表
     * @return 结果
     */
    @Override
    public int updateBoundary(Boundary boundary)
    {
        return boundaryMapper.updateBoundary(boundary);
    }

    /**
     * 批量删除边界表
     * 
     * @param ids 需要删除的边界表主键
     * @return 结果
     */
    @Override
    public int deleteBoundaryByIds(Long[] ids)
    {
        return boundaryMapper.deleteBoundaryByIds(ids);
    }

    /**
     * 删除边界表信息
     * 
     * @param id 边界表主键
     * @return 结果
     */
    @Override
    public int deleteBoundaryById(Long id)
    {
        return boundaryMapper.deleteBoundaryById(id);
    }
}
